import axios from '@/libs/api.request'

export class OrganizationBankApi {
  // 根据条件获取组织机构银行账号信息
  static getList (params) {
    return axios.request({
      url: '/OrganizationBank/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取组织机构银行账号信息
  static getBankList (params) {
    return axios.request({
      url: '/OrganizationBank/GetBankList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据ID获取组织机构银行账号信息
  static getModel (params) {
    return axios.request({
      url: '/OrganizationBank/GetModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存组织机构银行账号信息
  static save (params) {
    return axios.request({
      url: '/OrganizationBank/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 启用/禁用银行账号信息
  static enabledList (params) {
    return axios.request({
      url: '/OrganizationBank/EnabledList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 绑定客户获取客户列表
  static getCustomerNameList (params) {
    return axios.request({
      url: '/OrganizationBank/GetCustomerNameList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量绑定客户|批量取消绑定客户
  static batchBind (params) {
    return axios.request({
      url: '/OrganizationBank/BatchBind',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 汇总报表付款账号
  static getBankListByCustomerId (params) {
    return axios.request({
      url: '/OrganizationBank/GetBankListByCustomerId',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
